package com.sun.dailyprj;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.sun.dailyprj.util.Logger;

public class BootReceiver extends BroadcastReceiver{

    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent != null){
            String action = intent.getAction();
            Logger.warn("action:" + action);
            DailyService.start(context);
            if(action.equals("com.sun.action.Overlay")){
                Logger.warn("start copy overlay:" + intent.getStringExtra("overlay_type"));
            }
        }
    }
}
